

/**
 * 常用正则
 * @type {{idCode: RegExp, ip: RegExp, mobile: RegExp, taxNumber: RegExp, telephone: RegExp, email: RegExp, zh: RegExp}}
 */
export const Regular = {
  email: /^[A-Za-z0-9]+([_.][A-Za-z0-9]+)*@([A-Za-z0-9-]+\.)+[A-Za-z]{2,6}$/,
  mobile: /^1[3456789]\d{9}$/,
  telephone: /\d{3}-\d{8}|\d{4}-\d{7}/,
  ip: /((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))/,
  idCode:/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
  zh: /^[\u4e00-\u9fa5]*$/,
  taxNumber: /[0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}/,
  chineseName: /^[\u4e00-\u9fa5]{2,20}$/,
  englishName: /^[A-Za-z]{1}[A-Za-z\s]+[A-Za-z]{1}$/
};

export const Time = new Map([
  ["00:00", 0],
  ["00:30", 1800],
  ["01:00", 3600],
  ["01:30", 5400],
  ["02:00", 7200],
  ["02:30", 9000],
  ["03:00", 10800],
  ["03:30", 12600],
  ["04:00", 14400],
  ["04:30", 16200],
  ["05:00", 18000],
  ["05:30", 19800],
  ["06:00", 21600],
  ["06:30", 23400],
  ["07:00", 25200],
  ["07:30", 27000],
  ["08:00", 28800],
  ["08:30", 30600],
  ["09:00", 32400],
  ["09:30", 34200],
  ["10:00", 36000],
  ["10:30", 37800],
  ["11:00", 39600],
  ["11:30", 41400],
  ["12:00", 43200],
  ["12:30", 45000],
  ["13:00", 46800],
  ["13:30", 48600],
  ["14:00", 50400],
  ["14:30", 52200],
  ["15:00", 54000],
  ["15:30", 55800],
  ["16:00", 57600],
  ["16:30", 59400],
  ["17:00", 61200],
  ["17:30", 63000],
  ["18:00", 64800],
  ["18:30", 66600],
  ["19:00", 68400],
  ["19:30", 70200],
  ["20:00", 72000],
  ["20:30", 73800],
  ["21:00", 75600],
  ["21:30", 77400],
  ["22:00", 79200],
  ["22:30", 81000],
  ["23:00", 82800],
  ["23:30", 84600],
  ["24:00", 86400],
]);

export const WECHAR_TYPE='yz'


